/**
 * Copyright (c) 2018-2028, Chill Zhuang 庄骞 (smallchill@163.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.babble.blog.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.time.LocalDateTime;

/**
 * 博客分类表视图实体类
 *
 * @author Blade
 * @since 2021-11-19
 */
@Data
@ApiModel(value = "BlogCategoryUpdVO对象", description = "博客分类修改")
public class BlogCategoryUpdDTO {

	private static final long serialVersionUID = 1L;

	/**
	 * 博客分类id
	 */
	@NotNull(message = "博客分类ID不能为")
	@ApiModelProperty(value = "博客分类id")
	@TableId(value = "id", type = IdType.ASSIGN_ID)
	private String id;
	/**
	 * 分类内容
	 */
	@Length(min = 4,max = 14,message = "分类内容(4-14)")
	@ApiModelProperty(value = "分类内容")
	private String categoryName;
	/**
	 * 分类简介
	 */
	@Length(min = 4,max = 14,message = "分类内容(4-200)")
	@ApiModelProperty(value = "分类简介")
	private String content;
	/**
	 * 排序字段，越大越靠前
	 */
	@ApiModelProperty(value = "排序字段，越大越靠前")
	private Integer sort;
	/**
	 * 点击数
	 */
	@Null
	@ApiModelProperty(value = "点击数")
	private Integer clickCount;
	/**
	 * 状态
	 */
	@ApiModelProperty(value = "状态")
	private Integer status;
	/**
	 * 创建时间
	 */
	@Null(message = "创建时间要为空")
	@ApiModelProperty(value = "创建时间")
	private LocalDateTime createTime;
	/**
	 * 更新时间
	 */
	@Null(message = "更新时间要为空")
	@ApiModelProperty(value = "更新时间")
	private LocalDateTime updateTime;


}
